AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Casilla de verificación
  • Item characteristics
  • Updating an item with the data from the Check Box control
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Binding a Check Box control to an item
Item characteristics
A Combo Box control can be bound to an item in a data file, query, etc.
The following types of items can be bound to a Check Box control:
  • Numeric,
  • Boolean,
  • Check Box.
If the check box contains a single option, the item will take for value:
  • 1 if the box is checked
  • 0 if the box is not checked.
If the check box contains several options, an array item is required. Each element of the array item will correspond to a check box option, and will take the following value:
  • 1 if the box is checked
  • 0 if the box is not checked.
Updating an item with the data from the Check Box control
1st case: window, page or report fields are bound to fields in a data file (Binding)
All the items in the data file (or a related file) that are bound to a control in the window, page or report will be updated by ScreenToFile.
2nd case: window, status or page fields are not associated with items in a data file.
The value of each control must be assigned to each item.
  1. The Check Box control field has a single option: use the following syntax to update the field:
    <Data file>.<Item> = <Check Box control>
  2. The Check Box control field has several options and is linked to an array field: use the following syntax to update the field:
    <Data file>.<Item>[Option index] = <Check Box control>[Option index]
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 05/12/2024

Señalar un error o enviar una sugerencia | Ayuda local